{include file="html.tags.tpl"}
{include file="html.header.tpl"}
<div class="main">
<h1>Marcas - Listagem</h1>
<div class="sub_menu" align="center">
<a class='ajax' href="{$smarty.const.BASE_URL_ADM}marcas/cadastro/" title="Marcas - Cadastro">Cadastro</a>
</div>
<table border="0" cellpadding="4" cellspacing="0" align="center">
<thead>
<tr>
<td>Marca</td>
<td>Imagem</td>
<td>Status</td>
<td colspan="2"></td>
</tr>
</thead>
{foreach from=$lista item=listar}
<tr bgcolor="{cycle values="#F0F0F1,#E0E0E0"}">
<td>{$listar.marNom}</td>
<td align="center"><i class="icon-camera "></i></td>
<td>
    <a href="{$smarty.const.BASE_URL_ADM}marcas/trocaStatus/{$listar.marCod}/{($listar.marSta=='A')?'I':'A'}" class="status">
        <img src="{$smarty.const.ADM_IMG_URL}{($listar.marSta=='A')?'on':'off'}.png" alt="" height="16" width="16" />
    </a>
</td>
<td><a class="ajax" href="{$smarty.const.BASE_URL_ADM}marcas/edita/{$listar.marCod}">Editar</a></td>
<td><a href="{$smarty.const.BASE_URL_ADM}marcas/excluir/{$listar.marCod}">Excluir</a></td>
</tr>
{/foreach}
</table>
</div>	 
{include file="html.footer.tpl"}